//
//  AdvertisingPageViewAttachmentCell.swift
//  iModern
//
//  Created by Ralf on 7/27/15.
//  Copyright (c) 2015 com.starlooking. All rights reserved.
//

import UIKit

class AdvertisingPageViewAttachmentCell: TableViewCell
{

    @IBOutlet var previewImageView: UIImageView!
    override func awakeFromNib()
    {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(selected: Bool, animated: Bool)
    {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

    func setData(data: NSDictionary)
    {
        let fileUrl = data["fileURL"] as! String
        let url     = appDelegate.parameterManager.server + "/" + fileUrl
        previewImageView.load(url, placeholder: nil)
    }

}
